package com.eazy.lkv2.web.controller.system.count;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.eazy.lkv2.web.controller.BaseController;
import com.eazy.lkv2.web.service.system.SystemLogService;

/**
 * 浏览器访问
 */
@Controller
@RequestMapping("browser")
public class BrowserCountController extends BaseController {

	@Autowired
	private SystemLogService systemLogService;
	
	@RequestMapping("index")
	public ModelAndView index() {
		List<Map<String,Object>> areacount = systemLogService.browserCount();
		addObject("data", areacount);
		return getSuccess("sys/browsercount");
	}
}
